import request from "@/utils/request";

// 查询图书借阅列表
export function listBorrow(query) {
  return request({
    url: "/library/boBorrow/list",
    method: "get",
    params: query,
  });
}

// 查询图书借阅详细
export function getBorrow(id) {
  return request({
    url: "/library/boBorrow/" + id,
    method: "get",
  });
}

// 新增图书借阅
export function addBorrow(data) {
  return request({
    url: "/library/boBorrow",
    method: "post",
    data: data,
  });
}

// 修改图书借阅
export function updateBorrow(data) {
  return request({
    url: "/library/boBorrow",
    method: "put",
    data: data,
  });
}

// 删除图书借阅
export function delBorrow(id) {
  return request({
    url: "/library/boBorrow/" + id,
    method: "delete",
  });
}
